{% extends 'ViettransFrontBundle::layout.html.twig' %}

{% block body %}
<div class="grid_24">
	<div id="user_new" class="panel_no_bordered">
		<div class="header">Đăng kí tài khoản mới</div>
		<form action="{{ path('user_new') }}" method="post" {{ form_enctype(form) }}>
			<table>
				<tr>
					<td class="label">{{form_label(form.name)}}</td>
					<td class="widget">{{form_widget(form.name)}}
						<div class="error">{{form_errors(form.name)}}</div>
					</td>
				</tr>
				<tr>
					<td class="label">{{form_label(form.locality)}}</td>
					<td class="widget">{{form_widget(form.locality)}}
						<div class="note">Gõ (ít nhất 3 kí tự) và chọn thành phố trong danh sách gợi ý.</div>
						<div class="error">{{form_errors(form.locality)}}</div>
					</td>
				</tr>
				<tr>
					<td class="label">{{form_label(form.email)}}</td>
					<td class="widget">{{form_widget(form.email)}}
						<div class="error">{{form_errors(form.email)}}</div>
					</td>
				</tr>
				<tr>
					<td class="label">{{form_label(form.telephone)}}</td>
					<td class="widget">{{form_widget(form.telephone)}}
						<div class="note">*Không bắt buộc.</div>
						<div class="error">{{form_errors(form.telephone)}}</div>
					</td>
				</tr>
				<tr>
					<td class="label">{{form_label(form.password)}}</td>
					<td class="widget">{{form_widget(form.password)}}
						<div class="error">{{form_errors(form.password)}}</div>
					</td>
				</tr>
				<tr>
					<td class="label">{{form_label(form.confirmPassword)}}</td>
					<td class="widget">{{form_widget(form.confirmPassword)}}
						<div class="error">{{form_errors(form.confirmPassword)}}</div>
					</td>
				</tr>
				<tr>
					<td class="label"></td>
					<td class="widget"><div class="error">{{form_errors(form)}}</div></td>
				</tr>
				<tr>
					<td colspan="2" align="center">{{ form_rest(form) }}
						<button class="button save" type="submit">Tạo tài khoản</button>
					</td>
				</tr>
			</table>
		</form>
	</div>
</div>
{% endblock %}